package com.ruoyi.market.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName repo_ck
 */
@TableName(value ="repo_ck")
@Data
public class RepoCk2 implements Serializable {
    /**
     * 出库id（自增）
     */
    @TableId(type = IdType.AUTO)
    private Integer ckId;

    /**
     * 订单编号(外键）
     */
    private String mkOrderIndent;

    /**
     * 仓库管理表的id
     */
    private Integer repoWareId;

    /**
     * 出库时间
     */
    private Date ckTime;

    /**
     * 出库人（登录人的id）
     */
    private Integer sysCkUserId;

    /**
     * 状态(1未发货,2已发货,3已回款,4取消订单,5已退货)
     */
    private String status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RepoCk2 other = (RepoCk2) that;
        return (this.getCkId() == null ? other.getCkId() == null : this.getCkId().equals(other.getCkId()))
            && (this.getMkOrderIndent() == null ? other.getMkOrderIndent() == null : this.getMkOrderIndent().equals(other.getMkOrderIndent()))
            && (this.getRepoWareId() == null ? other.getRepoWareId() == null : this.getRepoWareId().equals(other.getRepoWareId()))
            && (this.getCkTime() == null ? other.getCkTime() == null : this.getCkTime().equals(other.getCkTime()))
            && (this.getSysCkUserId() == null ? other.getSysCkUserId() == null : this.getSysCkUserId().equals(other.getSysCkUserId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCkId() == null) ? 0 : getCkId().hashCode());
        result = prime * result + ((getMkOrderIndent() == null) ? 0 : getMkOrderIndent().hashCode());
        result = prime * result + ((getRepoWareId() == null) ? 0 : getRepoWareId().hashCode());
        result = prime * result + ((getCkTime() == null) ? 0 : getCkTime().hashCode());
        result = prime * result + ((getSysCkUserId() == null) ? 0 : getSysCkUserId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ckId=").append(ckId);
        sb.append(", mkOrderIndent=").append(mkOrderIndent);
        sb.append(", repoWareId=").append(repoWareId);
        sb.append(", ckTime=").append(ckTime);
        sb.append(", sysCkUserId=").append(sysCkUserId);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}